<%@page import="fun.wlfj.vo.Cash"%>
<%@page import="java.util.Date"%>
<%@page import="fun.wlfj.vo.User"%>
<%@page import="fun.wlfj.factory.CashSystemFactory"%>
<%@page import="fun.wlfj.vo.PayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% String which = "现金流表"; %>
<%@ include file="header.jsp"%>
<!-- CONTENT -->
<section id="content">
	<div class="page dashboard-page">
		<!-- bradcome -->
		<!-- row -->
		<section class="boxs">
			<div class="boxs-header">
				<h3 class="custom-font hb-blue">
					<strong>现金流表</strong>
				</h3>

			</div>
			<div class="boxs-body">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>现金流ID</th>
							<th>支付回执ID</th>
							<th>支付金额</th>
							<th>记录时间</th>
							<th>批注</th>
						</tr>
					</thead>
					<tbody>
					<%
					List<Cash> list = CashSystemFactory.getCashDao().getCashList();
					int cnt = 1;
					for(Cash c : list){
					%>
						<tr>
							<td><%=cnt ++ %></td>
							<td><%=String.format("CS%06d", c.getCashID()) %></td>
							<td><%=String.format("PL%06d", c.getPayBackID()) %></td>
							<td><%=c.getCashVal() %>¥</td>
							<td><%=c.getCashDate() %></td>
							<td><%=c.getComment()  %></td>
						</tr>
						<%} %>
					</tbody>
				</table>
			</div>
		</section>
	</div>
</section>
<%@ include file="/footer.jsp"%>